<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${message("admin.product.list")} - 766 SMART HOME</title>
<meta name="author" content="BIZ Team" />
<meta name="copyright" content="BIZ" />
<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/list.js"></script>
<style type="text/css">
.moreTable th {
	width: 80px;
	line-height: 25px;
	padding: 5px 10px 5px 0px;
	text-align: right;
	font-weight: normal;
	color: #333333;
	background-color: #f8fbff;
}

.moreTable td {
	line-height: 25px;
	padding: 5px;
	color: #666666;
}

.promotion {
	color: #cccccc;
}
</style>
</head>
<body>
	<div class="path">
		<a href="${base}/admin/common/index.jhtml">${message("admin.path.index")}</a> &raquo; ${message("admin.customer.list")} <span>(${message("admin.page.total", total)})</span>
	</div>
	<form id="listForm" action="list.jhtml" method="get">
		<div class="bar">
			[#if addCheck]
			<a href="add.jhtml" class="iconButton">
				<span class="addIcon">&nbsp;</span>${message("admin.common.add")}
			</a>
			[/#if]
			<div class="buttonWrap">
				<a href="javascript:;" id="deleteButton" class="iconButton disabled">
					<span class="deleteIcon">&nbsp;</span>${message("admin.common.delete")}
				</a>
			</div>
		</div>
		<table id="listTable" class="list">
			<tr>
				<th class="check">
					<input type="checkbox" id="selectAll" />
				</th>
				<th>
					<a href="javascript:;" class="sort" name="name">${message("Customer.tel")}</a>
				</th>
				<th>
					<a href="javascript:;" class="sort" name="productCategory">${message("Customer.workTime")}</a>
				</th>
				<th>
					<a href="javascript:;" class="sort" name="price">${message("Customer.flag")}</a>
				</th>
				<th>
					<a href="javascript:;" class="sort" name="cost">${message("Customer.staffSn")}</a>
				</th>
				<th>
					<a href="javascript:;" class="sort" name="stock">${message("Customer.staffName")}</a>
				</th>
				<th>
					<a href="javascript:;" class="sort" name="isMarketable">${message("Customer.createDate")}</a>
				</th>
				<th>
					<a href="javascript:;" class="sort" name="createDate">${message("Customer.modifyDate")}</a>
				</th>
				<th>
					<span>${message("admin.common.handle")}</span>
				</th>
			</tr>
			[#list list as items]
				<tr>
					<td>
						<input type="checkbox" name="ids" value="${items.id}" />
					</td>
					<td>
						${items.tel}
					</td>
					<td>
						${items.workTime}
					</td>
					<td>
						[#if items.flag]${message("Customer.flagTrue")}[#else]${message("Customer.flagFalse")}[/#if]
					</td>
					<td>
						${items.staffSn}
					</td>
					<td>
						${items.staffName}
					</td>
					<td>
						<span title="${items.createDate?string("yyyy-MM-dd HH:mm:ss")}">${items.createDate}</span>
					</td>
					<td>
						<span title="${items.modifyDate?string("yyyy-MM-dd HH:mm:ss")}">${items.modifyDate}</span>
					</td>
					<td>
						<a href="edit.jhtml?id=${items.id}">[${message("admin.common.edit")}]</a>
						<a href="show.jhtml?id=${items.id}">[${message("admin.common.view")}]</a>
					</td>
				</tr>
			[/#list]
		</table>
		[@pagination pageNumber = page.pageNumber totalPages = page.totalPages]
			[#include "/admin/include/pagination.ftl"]
		[/@pagination]
	</form>
</body>
</html>